<?php
/**
 * Created by PhpStorm.
 * User: fengzi
 * Date: 2019/5/29
 * Time: 17:18
 */

namespace app\vehicle\model;
use think\Model;

class DeliveryBus extends Model
{
    public function bus(){
        return $this->hasOne('bus','id','bus_id')->with('bus_business');
    }
    public function driver(){
        return $this->hasOne('bus_driver','id','driver_id');
    }
}